<?php declare(strict_types=1);

namespace Distributed\Group;

use Communication\TxSocketData;

interface ITransactionManage{
	/**
	 * 预提交接口
	 * @return [type] [description]
	 */
	function precommit(TxSocketData $socketData,int $fd);

	/**
	 * 提交接口
	 * @return [type] [description]
	 */
	function commit(string $groupId);

	/**
	 * 回滚接口
	 * @return [type] [description]
	 */
	function rollback(string $groupId, array $transactionList = array());

}